package com.mmall.service;

import com.mmall.common.ServerResponse;
import com.mmall.vo.CartVo;

import java.util.List;

/**
 * Create by lisy on Qingdao
 **/
public interface ICartService {

    ServerResponse<CartVo> add(Integer productId, Integer userId, Integer productCount);

    ServerResponse<CartVo> update(Integer userId, Integer productId, Integer count);

    ServerResponse<CartVo> delete(Integer userId, String productIds);

    ServerResponse<CartVo> list(Integer userId);

    ServerResponse<CartVo> select(Integer userId, Integer productId);

    ServerResponse<CartVo> selectOrUnSelect(Integer userId, Integer productId, Integer checked);

    ServerResponse getCartProductCountService(Integer userId);
}
